<extend name="Base/base" />
<block name='head'>
    <link rel="stylesheet" href="/Public/Admin/css/personal.css"/>
    <!--<link href="/Public/Admin/css/new_plan.css" rel="stylesheet" />-->
    <script src="/Public/static/layer/layer.js"></script>
    <!--文件上传-->
    <script type="text/javascript" src="/Public/Cropper/js/ajaxfileupload.js" ></script>
    <style>
        .textarea{height:50px;width:90%}
        .checkCont p{float:left;}
        .checkCont a{margin-left:10px;display: inline-block;}
        .fujian{margin:0;}
        .c-red{color:red}
        .pointer{cursor: pointer}
    </style>
</block>
<block name="content"> 
    <section class="layui-larry-box">
        <div class="larry-personal">
            <div class="layui-tab">
                <blockquote class="layui-elem-quote news_search">
                    <div class="layui-inline">
                        <a class="layui-btn layui-btn-normal newsAdd_btn" href="{:U('address')}">返回</a>
                    </div>
                </blockquote>
                <h3>基本信息</h3>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">姓名：</label>
                    <div class="layui-input-block">
                        <input class="layui-input" readonly="" style='border:0'  value='{$data.info.user_name}'>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">性别：</label>
                    <div class="layui-input-block">
                        <span>{$data['info']['sex'] ? '女' : '男'}</span>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">部门</label>
                    <div class="layui-input-block">
                        <span>{$data.info.dept_id|getDeptName}</span>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">职位</label>
                    <div class="layui-input-block">
                        <span>{$data.info.user_priv|getPrivName}</span>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">手机号码</label>
                    <div class="layui-input-block">
                        <span>{$data.info.mobil_no}</span>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">固定电话</label>
                    <div class="layui-input-block">
                        <span>{$data.tel}</span>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">分机号码</label>
                    <div class="layui-input-block">
                        <span>{$data.sort_tel}</span>
                    </div>
                </div>
                
                <h3 style="margin-top:20px">其他信息</h3>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">通讯地址</label>
                    <div class="layui-input-block">
                        <span>{$data.address}</span>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">QQ号</label>
                    <div class="layui-input-block">
                        <span>{$data.qq}</span>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">邮箱</label>
                    <div class="layui-input-block">
                        <span>{$data.info.email}</span>
                    </div>
                </div>
                <form class="layui-form" action="">
                    <div class="layui-form-item">
                        <label class="layui-form-label">我的分组</label>
                        <div class="layui-input-block">
                            <select name="group_id" class="layui-input search_input group_id" style="width:60%;display:inline;">
                                <option value=''>请选择分组</option>
                                <foreach name="groups" item="group">
                                    <option value="{$group.id}" {$data['group'] == $group['id'] ? 'selected' : ''}>{$group.group_name}</option>
                                </foreach>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <a class="layui-btn btn-submit ajax-post" data-url="{:U('showAddress')}" data-form="">确定</a>
                        </div>
                    </div>
                    <input type='hidden' name='id' value='{$data.id}'>
                </form>
            </div>
        </div>
    </section>
</block>
<block name="script">
    <!--<script type="text/javascript" src="/Public/Admin/js/erp.js"></script>-->
    <script type="text/javascript" src="/Public/Admin/js/common.js" ></script>


</block>
